<!DOCTYPE html>
<html>

	<head>
		<title>补录顾客</title>
		<meta http-equiv="Pragma" CONTENT="no-cache">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta name="renderer" content="webkit">

		<%include("/common/include.html"){}%>
	</head>
	<body style="overflow-x:hidden">
		
				
		<form id="zxcsform" action="${cxt !}/collection/measurement/cesuan" method="post">
		
		
		<input id="number" type="text" name="temporary.number" style="width: 120px;display: none;" value="${number !}" readonly="true" />
		<div class="content" style="width: 99%">
			<p style="height:10px;"></p>
			<div>
			进店日期：<input id="date_input" name = "temporary.gxsj" class="easyui-datebox theme-textbox-radius"  value = ${date!}  data-options="sharedCalendar:'#cc'"  style="font-weight: bold;height: 32px;">
				<div id="cc" class="easyui-calendar "></div>		
				<p style="width:6%;display:inline-block"></p>
				<input type="file" id="filePath" style="width: 180px"   accept="application/vnd.ms-excel"    name="filePath" /> <a href="#" id="btn"  class="easyui-linkbutton"  data-options="iconCls:'icon-information'" onclick="upload1222()" style="width:95px;">批量导入</a>
			</div>
			
			
		</div>
			<%include("/collection/measurement/collectionTemporaryInfo.html"){}%>
		</div> 
		</form>
		
		
	<!-- 	<form id="myFormId" action="user/initimport" method="post" enctype="multipart/form-data" target="frmright">
        	<table class="tableStyle" formMode="transparent">
            <tr>
                <td>
                <input type="file" id="filePath" style="width: 180px"  name="filePath" class="validate[required]"/> <a href="#" id="btn"  class="easyui-linkbutton"  data-options="iconCls:'icon-information'" onclick="upload1222()" style="width:95px;">批量导入</a>
                </td>
                
            </tr>
       		 </table>
    	</form> -->
		
		
	
    	
		<script src="${cxt !}/sb/js/collectionConsultMesureJs/collectionConsultMesureJs.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
		//--------上传图片
		function upload1222(){	
			
			var path = $('#filePath').val();
			if(path==null||path==''){
				$.alert(parent.$, "请选择xls格式文件");
				return  false;
			}
		
			 $.ajaxFileUpload({
			        url : '${cxt !}/collectionMeasurement/initimport',   //提交的路径
			        secureuri : false, // 是否启用安全提交，默认为false
			        fileElementId :['filePath'], // file控件id
//						         fileElementId :'zmfile',
			     	dataType: 'json',
			        success : function(data, status) {
			      
			        	if (data.message == '保存成功') {
			        		$.slideMsg("保存成功", parent.$);

			            }else{
			        		$.alert(parent.$, data.message);
			        	}
			        },
			        error : function(data, status) {
			        	$.alert(parent.$, "只能传入xls格式文件，如果文件格式正确请检查表格格式及内容是否有误");
			        }
			    });
		}
		        </script>
	</body>
</html>
